package com.lgt.fishmall.order.web;


import com.lgt.common.to.SaveAddressTo;
import com.lgt.common.utils.R;
import com.lgt.fishmall.order.feigh.MemberFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("order/order/member")
public class HelloController {

    @Autowired
    MemberFeignService memberFeignService;

    @GetMapping(value = "/{page}.html")
    public String listPage(@PathVariable("page") String page) {

        return page;
    }



    /**
     * 新增收货地址功能
     *
     */
    @RequestMapping("/saveAdress")
    public String saveAddr( SaveAddressTo saveAddressTo){
        memberFeignService.saveAddress(saveAddressTo);
        return "confirm";
    }
}
